<link rel="stylesheet" type="text/css" href="<?php echo base_url()."style.css"; ?>" />
<style type="text/css">
#warning
{
padding:10px;
margin-bottom:0px;
background-color:#E77471;
border-width:1px;
border-style: solid;
border-color:#A80000;
}
#success
{
padding:10px;
margin-bottom:0px;
background-color:#A8CBD4;
border-width:1px;
border-style: solid;
border-color:#04637A;
}
#headline 
{
font-weight:bold;
font-size:110%;
color:#e56506;
}

#ui-datepicker-div
{
left: 394px;
}

body
{
background-image: url(<?php echo base_url()."/images/white.gif"; ?>);
background-repeat: repeat-xy;
}

#grey
{
background-color: #E0E0E0;
}

.rightside
{
width:500px;
background-color: #E7EFEF;
border-style:solid;
border-width:1px;
border-color:#ff0000;
padding:10px 0 10px 20px;
align:center;
}
#admin
{
align:center;
}
</style>
<html>
<head>
<title>Admin</title>
	<meta charset="UTF-8" />
</head>
<body>
<!--search for the city first-->
					<?php	echo form_open('admin_add_city'); ?>
							<?php if(strcmp($success,"")!=0) {?>
							<p id="success"><?php echo $success; ?></p>
							<?php }?>
							<?php if(strcmp($warning,"")!=0) {?>
							<p id="warning"><?php echo $warning; ?></p>
							<?php }?>

<center>
<table width="75%">	
	<tr>
		<td align="center">
			<div id="admin">
							<h2 id="font">Admin Panel - Lel-Ltd</h2>
							<a href="<?php echo base_url()."admin"; ?>">Back to Admin Home</a>
							<br />
							<br />
			</div>
		</td>
	</tr>
	<tr>
		<td>
			<table width="100%" align="center" style="border-width:1px; border-style: solid; border-color:#04637A; ">
				<tr>
					<td>
						<center>
						<table  width="100%" align="center" style="padding:20px 0 20px 0;">
							<tr>
								<td><?php if(strcmp($city_exists,"")!=0) {?>
									<p id="reminder"><?php echo $city_exists; ?></p>
									<?php }?>
								</td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%" id="headline">Add City<br><br></td>
								<td></td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%">Add City :</td>
								<td align=left><input name="city" type="text" value="<?php echo $city;?>" ></td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%">Province/State:</td>
								<td><?php	echo form_dropdown('province_list', $province_list);  ?></td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%"><?php	echo form_submit('add_city', 'Add');	?>	</td>
								<td></td>
								<td width="30%"></td>
							</tr>
						</table>
						</center>
					</td>
				</tr>
				<tr>
					<td>
						<center>
						<table width="100%" align="center" style="padding:20px 0 20px 0;">
							<tr>
								<td><?php if(strcmp($province_exists,"")!=0) {?>
									<p id="reminder"><?php echo $reminder_province; ?></p>
									<?php }?>
								</td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%" id="headline"><br><br>Add Province/State<br><br></td>
								<td></td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%">Add Province :</td>
								<td align=left><input name="province_state" type="text" value="<?php echo $province_state;?>" ></td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%">Country :</td>
								<td align=left>
									<SELECT NAME="country">
										<OPTION VALUE="">
										<OPTION VALUE="Canada">Canada
										<OPTION VALUE="USA">USA
									</SELECT>
								</td>
								<td width="30%"></td>
							</tr>
							<tr>
								<td width="30%"></td>
								<td width="20%"><?php	echo form_submit('add_province', 'Add');	?>	</td>
								<td></td>
								<td width="30%"></td>
							</tr>
						</table>
						</center>

	<?php			echo form_close(); ?>
					</td>
				</tr>
			</table>
		</td>
	</tr>
</table>
</center>


</body>
</html>